SPEED=$1
BUFFER_SIZE=$2
mmdelay=$3
cc_name=$4

ethtool -K eth0 gso off
ethtool -K eth0 tso off
ethtool -K eth1 gso off
ethtool -K eth1 tso off
sysctl -w net.ipv4.tcp_sack=0

tcpdump -i eth0 -s 61 dst 11.11.11.2 -w cellsim_galactical_eth0_${SPEED}_${BUFFER_SIZE}_${mmdelay}_${cc_name}.pcap &
tcpdump -i eth1 -s 61 dst 11.11.11.2 -w cellsim_galactical_eth1_${SPEED}_${BUFFER_SIZE}_${mmdelay}_${cc_name}.pcap &
sleep 1

./cellsim 100M.pps wireless_50M.pps 64:9d:99:b1:92:e9 64:9d:99:b1:92:eb 0 100000 20 &
sleep 40
pkill -9 cellsim
sleep 1
pkill -9 tcpdump